//
//  SignatueImageDBModel.swift
//  ezyform
//
//  Created by MoennigQ on 15/5/18.
//  Copyright © 2018 Client.Solution Pty Ltd. All rights reserved.
//

import UIKit


class SignatureImageDBModel: NSObject {
    var dbId: Int32 = 0
    
    var pvd_id: String =  ""
    
    var uploading_flag: String = "0"
    
    var signature_type: SignatureType = .Installer
    
    var print_name: String = ""
    
    var image_data: NSData?
    
    var signed_at: String = ""
    //
    var installer_signature_latitude: Double?
    var installer_signature_longitude: Double?
    var installer_statement_design_type: String = "" //"not modified", "modified"
    var installer_statement_duty_type: String = "" //"install", "supervise"
    //installer签订协议时的自拍照
    var installer_agree_selfie: NSData?
    //installer提交签名时的自拍照
    var installer_signature_selfie: NSData?
    //owner签名时的勾选："undertaken the installation themselves", "supervised the installation by others"
    var physically_attended: String = ""
    var owner_signature_selfie: NSData?
    //认证号
    var accreditation_number: String = ""
    //如果是aho公司的就是用老协议，版本号是1，其他公司是新协议，版本号是2; 2022-04-01（is_new_stc_form = true时）后aho版本号是3，其他公司是4
    var owner_mandatory_declaration_version: String = ""
    //Owner签名时，针对Aus Solar Co公司的满意度form，
    var owner_aussolarco_satisfactory_version: String = ""
    var owner_satisfaction_completion_version: String = ""
    //onwer签新协议时用到："Discount", "Credit memo", "Cash payment"
    var owner_financial_incentive: String = ""
    //存放签名时，所有必填字段的信息
    var statement_input_param_all: String = ""
}
